<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost:8080/" />
<title>Test_SNF_PRL_05_RecoverUserNameOrPassword</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test_SNF_PRL_05_RecoverUserNameOrPassword</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/portal/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Recover your user name or password--</td>
	<td></td>
</tr>
<tr>
	<td>windowMaximize</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Add new user --</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=New Staff</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>Test_SNF_PRL_05</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>password</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>Test_SNF_PRL_05</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>Confirmpassword</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>Confirmpassword</td>
	<td>Test_SNF_PRL_05</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>firstName</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>firstName</td>
	<td>Test_SNF_PRL_05</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>lastName</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>lastName</td>
	<td>Test_SNF_PRL_05</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>email</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>email</td>
	<td>exomailtest@gmail.com</td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Choose User Profile --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[text()='User Profile']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[text()='User Profile']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>user.language</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>user.language</td>
	<td>label=English</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>You have registered a new account.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>You have registered a new account.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id=&quot;UIAccountPortlet&quot;]//a[text()=&quot;OK&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id=&quot;UIAccountPortlet&quot;]//a[text()=&quot;OK&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Check Forgot User Name/Password--</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=exact:Forgot your User Name/Password?</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=exact:Forgot your User Name/Password?</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Next</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Next</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>Test_SNF_PRL_05</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Send</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Send</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>An email has been sent to you.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>An email has been sent to you.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[contains(@onclick,'componentId=_')]//a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[contains(@onclick,'componentId=_')]//a</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Back</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Back</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Back</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Back</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Discard</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Discard</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Check mail --</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://gmail.com</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>Email</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>Email</td>
	<td>exomailtest</td>
</tr>
<tr>
	<td>type</td>
	<td>Passwd</td>
	<td>exoadmin</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>signIn</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>signIn</td>
	<td></td>
</tr>
<tr>
	<td>selectFrame</td>
	<td>canvas_frame</td>
	<td></td>
</tr>
<tr>
	<td>mouseDown</td>
	<td>//html/body//span//b[text()='Password and username reminder']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//html/body//a[contains(@href,'RecoveryPasswordAndUsername')]</td>
	<td></td>
</tr>
<tr>
	<td>storeAttribute</td>
	<td>//html/body//a[contains(@href,'RecoveryPasswordAndUsername')]@href</td>
	<td>resetPas</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[text()='Sign out']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//a[text()='Sign out']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Change password-- ${resetPas}</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>${resetPas}</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>newpassword</td>
	<td>exonewpass</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>newpassword</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>confirmnewpassword</td>
	<td>exonewpass</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Save</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>The password has been changed.</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>The password has been changed.</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIPortalApplication']//div[5]//div[@title='Close Window']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='UIPortalApplication']//div[5]//div[@title='Close Window']</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Login by new user after change password--</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/portal/classic/</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>Test_SNF_PRL_05</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>exonewpass</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//div[@id='UIPortalLoginFormAction']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Test_SNF_PRL_05 Test_SNF_PRL_05</td>
	<td></td>
</tr>
<tr>
	<td>verifyElementPresent</td>
	<td>link=Test_SNF_PRL_05 Test_SNF_PRL_05</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>click</td>
	<td>//a[@id='UIPortalLoginFormAction']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Users and Groups Manager</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Users and Groups Manager</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Search user --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>searchTerm</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>searchTerm</td>
	<td>Test_SNF_PRL_05</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//form[@id='UISearchForm']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//form[@id='UISearchForm']/div[2]/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Delete user --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//img[@alt='DeleteUser']</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//img[@alt='DeleteUser']</td>
	<td></td>
</tr>
<tr>
	<td>waitForConfirmationPresent</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Are you sure you want to delete Test_SNF_PRL_05 user?</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Empty data</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Empty data</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
